#pragma once
#include "DJoint.h"

namespace Skill
{
	namespace Ode
	{
		ref class DWorld;
		ref class DVector3;
		namespace Joints
		{
			ref class DJointGroup;
			public ref class DFixed : DJoint
			{
			public:

				///<summary>
				/// Create a new joint of the fixed type.
				///</summary>
				///<param name = "world"> Wrold </param>
				///<param name = "group">
				/// set to null to allocate the joint normally.
				/// If it is valid the joint is allocated in the given joint group.
				///</param>				
				DFixed(DWorld^ world , DJointGroup^ group);				


				///<summary>
				/// Call this on the fixed joint after it has been attached to
				/// remember the current desired relative offset and desired relative
				/// rotation between the bodies.
				///</summary>
				void SetFixed()				
				{
					dJointSetFixed(_This);
				}

				///<summary>
				/// set joint parameter
				///</summary>
				void SetParam(DJointParameters parameter, dReal value);	

				///<summary>
				/// Get joint parameter
				///</summary>
				dReal GetParam(DJointParameters parameter);
			};
		}
	}
}